package cn.hdu.liang.core.service.order;

import java.util.List;

import cn.hdu.liang.core.bean.BuyCart;
import cn.itcast.common.page.Pagination;
import cn.hdu.liang.core.bean.order.Order;
import cn.hdu.liang.core.query.order.OrderQuery;


public interface OrderService {

    public Integer addOrder(Order order, BuyCart buyCart);

    public Order getOrderByKey(Integer id);

    public List<Order> getOrdersByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateOrderByKey(Order order);

    public Pagination getOrderListWithPage(OrderQuery orderQuery);

    public List<Order> getOrderList(OrderQuery orderQuery);
}
